file=log/$1
#echo $file
num=$2
grep "\<Convegence Ratio\>:" $file | cut -d ":" -f 2| awk -v num=$num '{if(NR%4==num) print $0;}'| grep -v "nan"  | sed -r 's/\x1B\[[0-9;]*[mK]//g'| awk 'BEGIN{sum=0}{sum+=log($1)}END{print exp(sum/NR)}'
